From 52dba135d8146560643f0f6576ab1d064c3dc32f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 23 Aug 2008 01:19:44 +0000 Subject: [PATCH] *sigh*...needs to return a string to not die in ImagePage --- includes/filerepo/LocalFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 5e2eb81e08..7aa641bc15 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -1115,8 +1115,8 @@ class LocalFile extends File if ( !$revision ) return false; $text = $revision->getText(); if ( !$text ) return false; - $html = $wgParser->parse( $text, $this->title, new ParserOptions() ); - return $html; + $pout = $wgParser->parse( $text, $this->title, new ParserOptions() ); + return $pout->getText(); } function getDescription() { -- 2.20.1